﻿<%@ Page Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<PropertyManagement.WebUI.Models.EditProfile>" %>

<asp:Content ID="registerTitle" ContentPlaceHolderID="TitleContent" runat="server">
    Register
</asp:Content>

<asp:Content ID="registerContent" ContentPlaceHolderID="MainContent" runat="server">
    <h2>Edit Profile</h2>
    

    <% using (Html.BeginForm()) { %>
        <%: Html.ValidationSummary(true, "Account updation was unsuccessful. Please correct the errors and try again.") %>
        <div>
            <fieldset>
                <legend>Account Information</legend>
                
                <div class="editor-label">
                    <%: Html.LabelFor(m => m.FirstName) %>
                </div>
                <div class="editor-field">
                    <%: Html.TextBoxFor(m => m.FirstName)%>
                    <%: Html.ValidationMessageFor(m => m.FirstName)%>
                </div>

                 <div class="editor-label">
                    <%: Html.LabelFor(m => m.LastName) %>
                </div>
                <div class="editor-field">
                    <%: Html.TextBoxFor(m => m.LastName)%>
                    <%: Html.ValidationMessageFor(m => m.LastName)%>
                </div>
                
                <div class="editor-label">
                    <%: Html.LabelFor(m => m.MobileNo) %>
                </div>
                <div class="editor-field">
                    <%: Html.TextBoxFor(m => m.MobileNo)%>
                </div>

                 <div class="editor-label">
                    <%: Html.LabelFor(m => m.HousePhoneNo) %>
                </div>
                <div class="editor-field">
                    <%: Html.TextBoxFor(m => m.HousePhoneNo)%>
                </div>

                 <div class="editor-label">
                    <%: Html.LabelFor(m => m.OfficePhoneNo) %>
                </div>
                <div class="editor-field">
                    <%: Html.TextBoxFor(m => m.OfficePhoneNo)%>
                </div>

                <div class="editor-label">
                    <%: Html.LabelFor(m => m.Email) %>
                </div>
                <div class="editor-field">
                    <%: Html.TextBoxFor(m => m.Email) %>
                    <%: Html.ValidationMessageFor(m => m.Email) %>
                </div>
                <%: Html.HiddenFor(m => m.CustomerId) %>
                <p>
                    <input type="submit" value="Update" />
                </p>
            </fieldset>
        </div>
    <% } %>
</asp:Content>
